<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 1px solid red;
            /*溢出设置：visible默认显示 hidden隐藏 scroll滚动显示*/
            overflow: scroll;
        }
        img{
            /*设置行内元素垂直对齐方式：top上/middle中/bottom下/baseline基线对齐(默认)/*/
            vertical-align: top;
        }
    </style>
</head>
<body>
<input type="text"><img src="../b.png" width="100">
<div>
    <img src="../b.png" >
</div>
</body>
</html>